import request from './request.js'

export const getCommentList=(articleId,pageIndex,pageSize)=>{
    return request({
        url:'comment/getlist',
        method:'get',
        params:{
            articleId,
            pageIndex,
            pageSize
        }
    })
}

export const addComment=(data)=>{
    return request({
        url:'api/comment/add',
        method:'post',
        data
    })
}
